$OpenBSD: patch-i3-dmenu-desktop,v 1.6 2016/11/13 20:46:23 dcoppa Exp $
--- i3-dmenu-desktop.orig	Tue Nov  8 19:54:01 2016
+++ i3-dmenu-desktop	Thu Nov 10 18:04:35 2016
@@ -111,7 +111,7 @@ $xdg_data_home = $ENV{HOME} . '/.local/share' if
     ! -d $xdg_data_home;
 
 my $xdg_data_dirs = $ENV{XDG_DATA_DIRS};
-$xdg_data_dirs = '/usr/local/share/:/usr/share/' if
+$xdg_data_dirs = '${LOCALBASE}/share/' if
     !defined($xdg_data_dirs) ||
     $xdg_data_dirs eq '';
 
@@ -213,12 +213,12 @@ for my $file (values %desktops) {
 #     'evince.desktop' => {
 #         'Exec' => 'evince %U',
 #         'Name' => 'Dokumentenbetrachter',
-#         '_Location' => '/usr/share/applications/evince.desktop'
+#         '_Location' => '${LOCALBASE}/share/applications/evince.desktop'
 #       },
 #     'gedit.desktop' => {
 #         'Exec' => 'gedit %U',
 #         'Name' => 'gedit',
-#         '_Location' => '/usr/share/applications/gedit.desktop'
+#         '_Location' => '${LOCALBASE}/share/applications/gedit.desktop'
 #       }
 #   };
 
@@ -424,7 +424,7 @@ if (exists($app->{Terminal}) && $app->{Terminal}) {
     # we need to create a temporary script that contains the full command line
     # as the syntax for starting commands with arguments varies from terminal
     # emulator to terminal emulator.
-    # Then, we launch that script with i3-sensible-terminal.
+    # Then, we launch that script with xterm.
     my ($fh, $filename) = tempfile();
     binmode($fh, ':utf8');
     say $fh <<EOT;
@@ -435,7 +435,7 @@ EOT
     close($fh);
     chmod 0755, $filename;
 
-    $cmd = qq|exec i3-sensible-terminal -e "$filename"|;
+    $cmd = qq|exec ${X11BASE}/bin/xterm -e "$filename"|;
 } else {
     # i3 executes applications by passing the argument to i3’s “exec” command
     # as-is to $SHELL -c. The i3 parser supports quoted strings: When a string
@@ -476,7 +476,7 @@ notifications.
 
 The .desktop files are searched in $XDG_DATA_HOME/applications (by default
 $HOME/.local/share/applications) and in the "applications" subdirectory of each
-entry of $XDG_DATA_DIRS (by default /usr/local/share/:/usr/share/).
+entry of $XDG_DATA_DIRS (by default ${LOCALBASE}/share/).
 
 Files with the same name in $XDG_DATA_HOME/applications take precedence over
 files in $XDG_DATA_DIRS, so that you can overwrite parts of the system-wide
@@ -490,7 +490,7 @@ file respectively) by appending it to the name of the 
 want to launch "GNU Emacs 24" with the patch /tmp/foobar.txt, you would type
 "emacs", press TAB, type " /tmp/foobar.txt" and press ENTER.
 
-.desktop files with Terminal=true are started using i3-sensible-terminal(1).
+.desktop files with Terminal=true are started using xterm(1).
 
 .desktop files with NoDisplay=true or Hidden=true are skipped.
 
